<?php

/**
 * Default error view
 *  
 * @author
 * @version
 */

$this->headTitle($this->title);
$this->headLink()->appendStylesheet($this->host('css').'/styles/global.css');
$this->headLink()->appendStylesheet($this->host('css').'/styles/style.css');
?>

<div class="reg_top"><div class="reg_logo"><img src="<?=$this->host('img');?>/images/idkin_logo.gif" /></div>
</div>
<div class="pass_user_content">
  <div class="mistake_top">
    <div class="mistake_content">
      <div class="mistake_content_t"><img src="<?=$this->host('img');?>/images/x.gif" /><ul><li><h4><?=$this->type;?></h4></li></ul></div>
   
      <div class="mistake_content_p"><span>出错原因：</span><p><?=$this->message;?></p>
      </div>
      <div class="mistake_content_date"><div class="picl"><img src="<?=$this->host('img');?>/images/Mistake_10.gif" /></div>
<?php $gotoUrl = $this->gotoUrl; ?>
<?php if ('' != $this->gotoUrl): ?>
	<?php if (0 < $this->delay): ?>
      <div class="mistake_content_date_s">系统将在 <span id=time_delay><?=$this->delay;?></span> 秒钟后跳转至：<a href="<?=$this->gotoUrl;?>"><?=$this->gotoUrl;?></a></div>
	<?php else: ?>
      <div class="mistake_content_date_s">您可以跳转至：<a href="<?=$this->gotoUrl;?>"><?=$this->gotoUrl;?></a></div>
	<?php endif; ?>
<?php endif; ?>

      <div class="picr"><img src="<?=$this->host('img');?>/images/Mistake_14.gif" /></div></div>
      <div class="mistake_content_p"><span>您还可以选择跳转到其他页面：</span><ul>
      <li><a href="#">IDKin首页</a></li>
      <li><a href="#">家的畅想</a></li>
      <li><a href="#">供需直线</a></li>
      <li><a href="#">网罗天下</a></li>
      <li><a href="#">招贤纳士</a></li>
      <li><a href="#">设计百科</a></li>
      </ul>
      </div>
      <div class="clear"></div>
    </div> 
  </div>
  <div class="Pass_foot"><img src="<?=$this->host('img');?>/images/Mistake_06.gif" /></div>
 <div class="Trade_copyright1"><span class="picl"><img src="<?=$this->host('img');?>/images/idkin_logo.gif" alt="idkin.com爱迪肯" longdesc="http://www.idkin.com/" /></span>
     <div class="Trade_copyright_menu"><ul><li><a href="#">关于我们</a></li><li><a href="#">联系我们</a></li><li><a href="#">合作伙伴</a></li><li><a href="#">广告服务</a></li><li><a href="#">版权声明</a></li>
     </ul></div>
     <div class="Trade_copyright_menu">粤ICP备52225858@2008-2050 IDKin.com,ALL reserved</div>
   <div class="clear"></div></div>
</div>

<script language="javascript">
window.onload = function(){
	if(document.getElementById("time_delay")){
		var time = parseInt(document.getElementById("time_delay").innerHTML);
	}
	if (time > 0) {
		timeMsg(time);
	}
}
function timeMsg(time){
	document.getElementById("time_delay").innerHTML = time;
	time --;
	if(time > 0){
		setTimeout("timeMsg("+time+")",1000);
	}else {
		document.location.href = "<?php echo $this->gotoUrl;?>";
	}
}
</script>

<?php if ('dev' == $this->env || 'test' == $this->env): ?>
<br><br><br><br><br><br>
<h3>以下为开发状态dev时的附加出错信息：</h3>
<pre>
<?=$this->ErrorMessage ?>
</pre>
<?php endif; ?>
